package com.example.cloud.provider.core.service;

import com.example.cloud.provider.api.model.User;
import com.example.cloud.provider.api.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhouzeng
 * @date 2018/7/30
 */
@RestController
public class UserServiceImpl implements UserService {

    @Override
    @RequestMapping(value = "/user/findById", method = RequestMethod.GET)
    public User findById(@RequestParam("id") Long id) {
        User user = new User();
        user.setMobile("123456789");
        return user;
    }
}
